﻿<Window x:Class="ZOIL.DataBackend.DataBackendChooser"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:ZOIL.DataBackend"
        xmlns:s="http://schemas.microsoft.com/surface/2008"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:system="clr-namespace:System;assembly=mscorlib"
        mc:Ignorable="d" 
        Title="Choose DataBackend"
        Height="230"
        Width="355"
        WindowStyle="ToolWindow"
        ResizeMode="NoResize">
    <Window.Resources>
        <local:BitmapToImageSourceConverter x:Key="BitmapToImageSourceConverter" />
        <Style x:Key="DataBackendListBox" TargetType="{x:Type s:SurfaceListBox}">
        	<Setter Property="Background" Value="Transparent"/>
        	<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        	<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        	<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
        	<Setter Property="s:SurfaceScrollViewer.Elasticity" Value="0,0.4"/>
        	<Setter Property="MinHeight" Value="80"/>
        	<Setter Property="Foreground" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        	<Setter Property="BorderBrush" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        	<Setter Property="Padding" Value="0"/>
        	<Setter Property="BorderThickness" Value="2"/>
        	<Setter Property="Margin" Value="0"/>
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="{x:Type s:SurfaceListBox}">
        				<Grid SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        					<s:SurfaceScrollViewer x:Name="scrollViewer" Background="{TemplateBinding Background}" Elasticity="{TemplateBinding s:SurfaceScrollViewer.Elasticity}" Foreground="{TemplateBinding Foreground}" Focusable="False" Height="Auto" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" MinWidth="{TemplateBinding MinWidth}" MinHeight="{TemplateBinding MinHeight}" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" Width="Auto">
        						<s:SurfaceScrollViewer.Style>
        							<Style TargetType="{x:Type s:SurfaceScrollViewer}">
        								<Setter Property="Template">
        									<Setter.Value>
        										<ControlTemplate TargetType="{x:Type s:SurfaceScrollViewer}">
        											<Grid Background="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Margin="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Stretch">
        												<Grid.ColumnDefinitions>
        													<ColumnDefinition Width="*"/>
        													<ColumnDefinition Width="Auto"/>
        												</Grid.ColumnDefinitions>
        												<Grid.RowDefinitions>
        													<RowDefinition Height="*"/>
        													<RowDefinition Height="Auto"/>
        												</Grid.RowDefinitions>
        												<Border x:Name="PART_ElasticBorder" BorderBrush="Transparent" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        													<ScrollContentPresenter CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" Grid.ColumnSpan="1" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Margin="{TemplateBinding Padding}" Grid.RowSpan="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
        												</Border>
        												<s:SurfaceScrollBar x:Name="PART_HorizontalScrollBar" AutomationProperties.AutomationId="HorizontalScrollBar" Background="{TemplateBinding Background}" ClipToBounds="True" Height="Auto" LargeChange="1" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Orientation="Horizontal" Grid.Row="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}">
        													<s:SurfaceScrollBar.Style>
        														<Style TargetType="{x:Type s:SurfaceScrollBar}">
        															<Style.Resources>
        																<system:Double x:Key="{x:Static SystemParameters.VerticalScrollBarButtonHeightKey}">38</system:Double>
        																<system:Double x:Key="{x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}">38</system:Double>
        															</Style.Resources>
        															<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
        															<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        															<Setter Property="Width" Value="38"/>
        															<Setter Property="Height" Value="Auto"/>
        															<Setter Property="Template">
        																<Setter.Value>
        																	<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																		<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																			<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																				<Track x:Name="PART_Track" IsDirectionReversed="True">
        																					<Track.DecreaseRepeatButton>
        																						<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageUpCommand" HorizontalAlignment="Center">
        																							<s:SurfaceRepeatButton.Style>
        																								<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																									<Setter Property="Interval" Value="150"/>
        																									<Setter Property="BorderBrush" Value="{x:Null}"/>
        																									<Setter Property="Background" Value="Transparent"/>
        																									<Setter Property="OverridesDefaultStyle" Value="True"/>
        																									<Setter Property="Focusable" Value="False"/>
        																									<Setter Property="IsTabStop" Value="False"/>
        																									<Setter Property="Template">
        																										<Setter.Value>
        																											<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																												<Grid Background="{TemplateBinding Background}" Width="40">
        																													<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																												</Grid>
        																												<ControlTemplate.Triggers>
        																													<Trigger Property="IsEnabled" Value="False">
        																														<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																													</Trigger>
        																												</ControlTemplate.Triggers>
        																											</ControlTemplate>
        																										</Setter.Value>
        																									</Setter>
        																								</Style>
        																							</s:SurfaceRepeatButton.Style>
        																						</s:SurfaceRepeatButton>
        																					</Track.DecreaseRepeatButton>
        																					<Track.IncreaseRepeatButton>
        																						<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageDownCommand" HorizontalAlignment="Center">
        																							<s:SurfaceRepeatButton.Style>
        																								<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																									<Setter Property="Interval" Value="150"/>
        																									<Setter Property="BorderBrush" Value="{x:Null}"/>
        																									<Setter Property="Background" Value="Transparent"/>
        																									<Setter Property="OverridesDefaultStyle" Value="True"/>
        																									<Setter Property="Focusable" Value="False"/>
        																									<Setter Property="IsTabStop" Value="False"/>
        																									<Setter Property="Template">
        																										<Setter.Value>
        																											<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																												<Grid Background="{TemplateBinding Background}" Width="40">
        																													<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																												</Grid>
        																												<ControlTemplate.Triggers>
        																													<Trigger Property="IsEnabled" Value="False">
        																														<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																													</Trigger>
        																												</ControlTemplate.Triggers>
        																											</ControlTemplate>
        																										</Setter.Value>
        																									</Setter>
        																								</Style>
        																							</s:SurfaceRepeatButton.Style>
        																						</s:SurfaceRepeatButton>
        																					</Track.IncreaseRepeatButton>
        																					<Track.Thumb>
        																						<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" HorizontalAlignment="Center">
        																							<s:SurfaceThumb.Style>
        																								<Style TargetType="{x:Type s:SurfaceThumb}">
        																									<Setter Property="Template">
        																										<Setter.Value>
        																											<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																												<ControlTemplate.Resources>
        																													<Storyboard x:Key="Touch">
        																														<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																														<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																													</Storyboard>
        																													<Storyboard x:Key="Release">
        																														<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																														<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																													</Storyboard>
        																												</ControlTemplate.Resources>
        																												<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																													<Rectangle x:Name="Thumb" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="14"/>
        																												</Grid>
        																												<ControlTemplate.Triggers>
        																													<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																														<Trigger.EnterActions>
        																															<BeginStoryboard>
        																																<Storyboard>
        																																	<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																	<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																</Storyboard>
        																															</BeginStoryboard>
        																														</Trigger.EnterActions>
        																														<Trigger.ExitActions>
        																															<BeginStoryboard>
        																																<Storyboard>
        																																	<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																	<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																</Storyboard>
        																															</BeginStoryboard>
        																														</Trigger.ExitActions>
        																													</Trigger>
        																													<Trigger Property="IsEnabled" Value="False">
        																														<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																													</Trigger>
        																												</ControlTemplate.Triggers>
        																											</ControlTemplate>
        																										</Setter.Value>
        																									</Setter>
        																									<Style.BasedOn>
        																										<Style TargetType="{x:Type Control}">
        																											<Setter Property="SnapsToDevicePixels" Value="False"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																											<Setter Property="MinWidth" Value="40"/>
        																											<Setter Property="MinHeight" Value="40"/>
        																										</Style>
        																									</Style.BasedOn>
        																								</Style>
        																							</s:SurfaceThumb.Style>
        																						</s:SurfaceThumb>
        																					</Track.Thumb>
        																				</Track>
        																			</Border>
        																		</Grid>
        																		<ControlTemplate.Triggers>
        																			<Trigger Property="IsEnabled" Value="False">
        																				<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																			</Trigger>
        																		</ControlTemplate.Triggers>
        																	</ControlTemplate>
        																</Setter.Value>
        															</Setter>
        															<Style.BasedOn>
        																<Style TargetType="{x:Type Control}">
        																	<Setter Property="SnapsToDevicePixels" Value="False"/>
        																	<Setter Property="Background" Value="Transparent"/>
        																	<Setter Property="IsTabStop" Value="False"/>
        																	<Setter Property="Focusable" Value="False"/>
        																	<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																	<Setter Property="MinWidth" Value="40"/>
        																	<Setter Property="MinHeight" Value="40"/>
        																</Style>
        															</Style.BasedOn>
        															<Style.Triggers>
        																<Trigger Property="Orientation" Value="Horizontal">
        																	<Setter Property="Width" Value="Auto"/>
        																	<Setter Property="Height" Value="38"/>
        																	<Setter Property="Template">
        																		<Setter.Value>
        																			<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																				<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																					<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																						<Track x:Name="PART_Track">
        																							<Track.DecreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageLeftCommand" VerticalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Height="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.DecreaseRepeatButton>
        																							<Track.IncreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageRightCommand" VerticalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Height="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.IncreaseRepeatButton>
        																							<Track.Thumb>
        																								<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" VerticalAlignment="Center">
        																									<s:SurfaceThumb.Style>
        																										<Style TargetType="{x:Type s:SurfaceThumb}">
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																														<ControlTemplate.Resources>
        																															<Storyboard x:Key="Touch">
        																																<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																															<Storyboard x:Key="Release">
        																																<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																														</ControlTemplate.Resources>
        																														<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																															<Rectangle x:Name="Thumb" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Stretch" Height="14" VerticalAlignment="Stretch" Width="Auto"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																																<Trigger.EnterActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.EnterActions>
        																																<Trigger.ExitActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.ExitActions>
        																															</Trigger>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																											<Style.BasedOn>
        																												<Style TargetType="{x:Type Control}">
        																													<Setter Property="SnapsToDevicePixels" Value="False"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																													<Setter Property="MinWidth" Value="40"/>
        																													<Setter Property="MinHeight" Value="40"/>
        																												</Style>
        																											</Style.BasedOn>
        																										</Style>
        																									</s:SurfaceThumb.Style>
        																								</s:SurfaceThumb>
        																							</Track.Thumb>
        																						</Track>
        																					</Border>
        																				</Grid>
        																				<ControlTemplate.Triggers>
        																					<Trigger Property="IsEnabled" Value="False">
        																						<Setter Property="Opacity" TargetName="IncreaseRepeat" Value="0.33"/>
        																						<Setter Property="Opacity" TargetName="DecreaseRepeat" Value="0.33"/>
        																						<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																					</Trigger>
        																				</ControlTemplate.Triggers>
        																			</ControlTemplate>
        																		</Setter.Value>
        																	</Setter>
        																</Trigger>
        															</Style.Triggers>
        														</Style>
        													</s:SurfaceScrollBar.Style>
        												</s:SurfaceScrollBar>
        												<s:SurfaceScrollBar x:Name="PART_VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar" Background="{TemplateBinding Background}" ClipToBounds="True" Grid.Column="1" LargeChange="1" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Orientation="Vertical" Grid.Row="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Width="Auto">
        													<s:SurfaceScrollBar.Style>
        														<Style TargetType="{x:Type s:SurfaceScrollBar}">
        															<Style.Resources>
        																<system:Double x:Key="{x:Static SystemParameters.VerticalScrollBarButtonHeightKey}">38</system:Double>
        																<system:Double x:Key="{x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}">38</system:Double>
        															</Style.Resources>
        															<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
        															<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        															<Setter Property="Width" Value="38"/>
        															<Setter Property="Height" Value="Auto"/>
        															<Setter Property="Template">
        																<Setter.Value>
        																	<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																		<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																			<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																				<Track x:Name="PART_Track" IsDirectionReversed="True">
        																					<Track.DecreaseRepeatButton>
        																						<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageUpCommand" HorizontalAlignment="Center">
        																							<s:SurfaceRepeatButton.Style>
        																								<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																									<Setter Property="Interval" Value="150"/>
        																									<Setter Property="BorderBrush" Value="{x:Null}"/>
        																									<Setter Property="Background" Value="Transparent"/>
        																									<Setter Property="OverridesDefaultStyle" Value="True"/>
        																									<Setter Property="Focusable" Value="False"/>
        																									<Setter Property="IsTabStop" Value="False"/>
        																									<Setter Property="Template">
        																										<Setter.Value>
        																											<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																												<Grid Background="{TemplateBinding Background}" Width="40">
        																													<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																												</Grid>
        																												<ControlTemplate.Triggers>
        																													<Trigger Property="IsEnabled" Value="False">
        																														<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																													</Trigger>
        																												</ControlTemplate.Triggers>
        																											</ControlTemplate>
        																										</Setter.Value>
        																									</Setter>
        																								</Style>
        																							</s:SurfaceRepeatButton.Style>
        																						</s:SurfaceRepeatButton>
        																					</Track.DecreaseRepeatButton>
        																					<Track.IncreaseRepeatButton>
        																						<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageDownCommand" HorizontalAlignment="Center">
        																							<s:SurfaceRepeatButton.Style>
        																								<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																									<Setter Property="Interval" Value="150"/>
        																									<Setter Property="BorderBrush" Value="{x:Null}"/>
        																									<Setter Property="Background" Value="Transparent"/>
        																									<Setter Property="OverridesDefaultStyle" Value="True"/>
        																									<Setter Property="Focusable" Value="False"/>
        																									<Setter Property="IsTabStop" Value="False"/>
        																									<Setter Property="Template">
        																										<Setter.Value>
        																											<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																												<Grid Background="{TemplateBinding Background}" Width="40">
        																													<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																												</Grid>
        																												<ControlTemplate.Triggers>
        																													<Trigger Property="IsEnabled" Value="False">
        																														<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																													</Trigger>
        																												</ControlTemplate.Triggers>
        																											</ControlTemplate>
        																										</Setter.Value>
        																									</Setter>
        																								</Style>
        																							</s:SurfaceRepeatButton.Style>
        																						</s:SurfaceRepeatButton>
        																					</Track.IncreaseRepeatButton>
        																					<Track.Thumb>
        																						<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" HorizontalAlignment="Center">
        																							<s:SurfaceThumb.Style>
        																								<Style TargetType="{x:Type s:SurfaceThumb}">
        																									<Setter Property="Template">
        																										<Setter.Value>
        																											<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																												<ControlTemplate.Resources>
        																													<Storyboard x:Key="Touch">
        																														<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																														<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																													</Storyboard>
        																													<Storyboard x:Key="Release">
        																														<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																														<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																													</Storyboard>
        																												</ControlTemplate.Resources>
        																												<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																													<Rectangle x:Name="Thumb" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="14"/>
        																												</Grid>
        																												<ControlTemplate.Triggers>
        																													<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																														<Trigger.EnterActions>
        																															<BeginStoryboard>
        																																<Storyboard>
        																																	<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																	<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																</Storyboard>
        																															</BeginStoryboard>
        																														</Trigger.EnterActions>
        																														<Trigger.ExitActions>
        																															<BeginStoryboard>
        																																<Storyboard>
        																																	<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																	<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																</Storyboard>
        																															</BeginStoryboard>
        																														</Trigger.ExitActions>
        																													</Trigger>
        																													<Trigger Property="IsEnabled" Value="False">
        																														<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																													</Trigger>
        																												</ControlTemplate.Triggers>
        																											</ControlTemplate>
        																										</Setter.Value>
        																									</Setter>
        																									<Style.BasedOn>
        																										<Style TargetType="{x:Type Control}">
        																											<Setter Property="SnapsToDevicePixels" Value="False"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																											<Setter Property="MinWidth" Value="40"/>
        																											<Setter Property="MinHeight" Value="40"/>
        																										</Style>
        																									</Style.BasedOn>
        																								</Style>
        																							</s:SurfaceThumb.Style>
        																						</s:SurfaceThumb>
        																					</Track.Thumb>
        																				</Track>
        																			</Border>
        																		</Grid>
        																		<ControlTemplate.Triggers>
        																			<Trigger Property="IsEnabled" Value="False">
        																				<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																			</Trigger>
        																		</ControlTemplate.Triggers>
        																	</ControlTemplate>
        																</Setter.Value>
        															</Setter>
        															<Style.BasedOn>
        																<Style TargetType="{x:Type Control}">
        																	<Setter Property="SnapsToDevicePixels" Value="False"/>
        																	<Setter Property="Background" Value="Transparent"/>
        																	<Setter Property="IsTabStop" Value="False"/>
        																	<Setter Property="Focusable" Value="False"/>
        																	<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																	<Setter Property="MinWidth" Value="40"/>
        																	<Setter Property="MinHeight" Value="40"/>
        																</Style>
        															</Style.BasedOn>
        															<Style.Triggers>
        																<Trigger Property="Orientation" Value="Horizontal">
        																	<Setter Property="Width" Value="Auto"/>
        																	<Setter Property="Height" Value="38"/>
        																	<Setter Property="Template">
        																		<Setter.Value>
        																			<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																				<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																					<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																						<Track x:Name="PART_Track">
        																							<Track.DecreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageLeftCommand" VerticalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Height="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.DecreaseRepeatButton>
        																							<Track.IncreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageRightCommand" VerticalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Height="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.IncreaseRepeatButton>
        																							<Track.Thumb>
        																								<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" VerticalAlignment="Center">
        																									<s:SurfaceThumb.Style>
        																										<Style TargetType="{x:Type s:SurfaceThumb}">
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																														<ControlTemplate.Resources>
        																															<Storyboard x:Key="Touch">
        																																<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																															<Storyboard x:Key="Release">
        																																<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																														</ControlTemplate.Resources>
        																														<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																															<Rectangle x:Name="Thumb" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Height="14" VerticalAlignment="Stretch" Width="Auto"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																																<Trigger.EnterActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.EnterActions>
        																																<Trigger.ExitActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.ExitActions>
        																															</Trigger>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																											<Style.BasedOn>
        																												<Style TargetType="{x:Type Control}">
        																													<Setter Property="SnapsToDevicePixels" Value="False"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																													<Setter Property="MinWidth" Value="40"/>
        																													<Setter Property="MinHeight" Value="40"/>
        																												</Style>
        																											</Style.BasedOn>
        																										</Style>
        																									</s:SurfaceThumb.Style>
        																								</s:SurfaceThumb>
        																							</Track.Thumb>
        																						</Track>
        																					</Border>
        																				</Grid>
        																				<ControlTemplate.Triggers>
        																					<Trigger Property="IsEnabled" Value="False">
        																						<Setter Property="Opacity" TargetName="IncreaseRepeat" Value="0.33"/>
        																						<Setter Property="Opacity" TargetName="DecreaseRepeat" Value="0.33"/>
        																						<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																					</Trigger>
        																				</ControlTemplate.Triggers>
        																			</ControlTemplate>
        																		</Setter.Value>
        																	</Setter>
        																</Trigger>
        															</Style.Triggers>
        														</Style>
        													</s:SurfaceScrollBar.Style>
        												</s:SurfaceScrollBar>
        												<Border x:Name="Container" BorderBrush="Transparent" Background="{TemplateBinding Background}" Grid.Column="1" Grid.Row="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
        											</Grid>
        											<ControlTemplate.Triggers>
        												<Trigger Property="IsEnabled" Value="False">
        													<Setter Property="IsEnabled" TargetName="PART_HorizontalScrollBar" Value="False"/>
        													<Setter Property="IsEnabled" TargetName="PART_VerticalScrollBar" Value="False"/>
        													<Setter Property="BorderBrush" TargetName="PART_ElasticBorder" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        												</Trigger>
        											</ControlTemplate.Triggers>
        										</ControlTemplate>
        									</Setter.Value>
        								</Setter>
        								<Style.BasedOn>
        									<Style TargetType="{x:Type s:SurfaceScrollViewer}">
        										<Setter Property="Elasticity" Value="0.4,0.4"/>
        										<Setter Property="HorizontalScrollBarVisibility" Value="Auto"/>
        										<Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
        										<Setter Property="Template">
        											<Setter.Value>
        												<ControlTemplate TargetType="{x:Type s:SurfaceScrollViewer}">
        													<Grid Background="{TemplateBinding Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        														<Grid.ColumnDefinitions>
        															<ColumnDefinition Width="*"/>
        															<ColumnDefinition Width="Auto"/>
        														</Grid.ColumnDefinitions>
        														<Grid.RowDefinitions>
        															<RowDefinition Height="*"/>
        															<RowDefinition Height="Auto"/>
        														</Grid.RowDefinitions>
        														<Border x:Name="PART_ElasticBorder" Background="{TemplateBinding Background}">
        															<ScrollContentPresenter CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" Grid.ColumnSpan="1" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Margin="-1" Grid.Row="0" Grid.RowSpan="1"/>
        														</Border>
        														<s:SurfaceScrollBar x:Name="PART_HorizontalScrollBar" AutomationProperties.AutomationId="HorizontalScrollBar" Grid.Column="0" Foreground="{x:Null}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Height="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled" LargeChange="1" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Orientation="Horizontal" Grid.Row="1" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" VerticalContentAlignment="Stretch">
        															<s:SurfaceScrollBar.Style>
        																<Style TargetType="{x:Type s:SurfaceScrollBar}">
        																	<Style.Resources>
        																		<system:Double x:Key="{x:Static SystemParameters.VerticalScrollBarButtonHeightKey}">38</system:Double>
        																		<system:Double x:Key="{x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}">38</system:Double>
        																	</Style.Resources>
        																	<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
        																	<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        																	<Setter Property="Width" Value="38"/>
        																	<Setter Property="Height" Value="Auto"/>
        																	<Setter Property="Template">
        																		<Setter.Value>
        																			<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																				<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																					<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																						<Track x:Name="PART_Track" IsDirectionReversed="True">
        																							<Track.DecreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageUpCommand" HorizontalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Width="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.DecreaseRepeatButton>
        																							<Track.IncreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageDownCommand" HorizontalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Width="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.IncreaseRepeatButton>
        																							<Track.Thumb>
        																								<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" HorizontalAlignment="Center">
        																									<s:SurfaceThumb.Style>
        																										<Style TargetType="{x:Type s:SurfaceThumb}">
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																														<ControlTemplate.Resources>
        																															<Storyboard x:Key="Touch">
        																																<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																															<Storyboard x:Key="Release">
        																																<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																														</ControlTemplate.Resources>
        																														<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																															<Rectangle x:Name="Thumb" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="14"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																																<Trigger.EnterActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.EnterActions>
        																																<Trigger.ExitActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.ExitActions>
        																															</Trigger>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																											<Style.BasedOn>
        																												<Style TargetType="{x:Type Control}">
        																													<Setter Property="SnapsToDevicePixels" Value="False"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																													<Setter Property="MinWidth" Value="40"/>
        																													<Setter Property="MinHeight" Value="40"/>
        																												</Style>
        																											</Style.BasedOn>
        																										</Style>
        																									</s:SurfaceThumb.Style>
        																								</s:SurfaceThumb>
        																							</Track.Thumb>
        																						</Track>
        																					</Border>
        																				</Grid>
        																				<ControlTemplate.Triggers>
        																					<Trigger Property="IsEnabled" Value="False">
        																						<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																					</Trigger>
        																				</ControlTemplate.Triggers>
        																			</ControlTemplate>
        																		</Setter.Value>
        																	</Setter>
        																	<Style.BasedOn>
        																		<Style TargetType="{x:Type Control}">
        																			<Setter Property="SnapsToDevicePixels" Value="False"/>
        																			<Setter Property="Background" Value="Transparent"/>
        																			<Setter Property="IsTabStop" Value="False"/>
        																			<Setter Property="Focusable" Value="False"/>
        																			<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																			<Setter Property="MinWidth" Value="40"/>
        																			<Setter Property="MinHeight" Value="40"/>
        																		</Style>
        																	</Style.BasedOn>
        																	<Style.Triggers>
        																		<Trigger Property="Orientation" Value="Horizontal">
        																			<Setter Property="Width" Value="Auto"/>
        																			<Setter Property="Height" Value="38"/>
        																			<Setter Property="Template">
        																				<Setter.Value>
        																					<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																						<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																							<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																								<Track x:Name="PART_Track">
        																									<Track.DecreaseRepeatButton>
        																										<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageLeftCommand" VerticalAlignment="Center">
        																											<s:SurfaceRepeatButton.Style>
        																												<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																													<Setter Property="Interval" Value="150"/>
        																													<Setter Property="BorderBrush" Value="{x:Null}"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="OverridesDefaultStyle" Value="True"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Template">
        																														<Setter.Value>
        																															<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																																<Grid Background="{TemplateBinding Background}" Height="40">
        																																	<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																																</Grid>
        																																<ControlTemplate.Triggers>
        																																	<Trigger Property="IsEnabled" Value="False">
        																																		<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																																	</Trigger>
        																																</ControlTemplate.Triggers>
        																															</ControlTemplate>
        																														</Setter.Value>
        																													</Setter>
        																												</Style>
        																											</s:SurfaceRepeatButton.Style>
        																										</s:SurfaceRepeatButton>
        																									</Track.DecreaseRepeatButton>
        																									<Track.IncreaseRepeatButton>
        																										<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageRightCommand" VerticalAlignment="Center">
        																											<s:SurfaceRepeatButton.Style>
        																												<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																													<Setter Property="Interval" Value="150"/>
        																													<Setter Property="BorderBrush" Value="{x:Null}"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="OverridesDefaultStyle" Value="True"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Template">
        																														<Setter.Value>
        																															<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																																<Grid Background="{TemplateBinding Background}" Height="40">
        																																	<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																																</Grid>
        																																<ControlTemplate.Triggers>
        																																	<Trigger Property="IsEnabled" Value="False">
        																																		<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																																	</Trigger>
        																																</ControlTemplate.Triggers>
        																															</ControlTemplate>
        																														</Setter.Value>
        																													</Setter>
        																												</Style>
        																											</s:SurfaceRepeatButton.Style>
        																										</s:SurfaceRepeatButton>
        																									</Track.IncreaseRepeatButton>
        																									<Track.Thumb>
        																										<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" VerticalAlignment="Center">
        																											<s:SurfaceThumb.Style>
        																												<Style TargetType="{x:Type s:SurfaceThumb}">
        																													<Setter Property="Template">
        																														<Setter.Value>
        																															<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																																<ControlTemplate.Resources>
        																																	<Storyboard x:Key="Touch">
        																																		<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																		<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																	</Storyboard>
        																																	<Storyboard x:Key="Release">
        																																		<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																		<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																	</Storyboard>
        																																</ControlTemplate.Resources>
        																																<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																																	<Rectangle x:Name="Thumb" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Height="14" VerticalAlignment="Stretch" Width="Auto"/>
        																																</Grid>
        																																<ControlTemplate.Triggers>
        																																	<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																																		<Trigger.EnterActions>
        																																			<BeginStoryboard>
        																																				<Storyboard>
        																																					<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																					<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																				</Storyboard>
        																																			</BeginStoryboard>
        																																		</Trigger.EnterActions>
        																																		<Trigger.ExitActions>
        																																			<BeginStoryboard>
        																																				<Storyboard>
        																																					<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																					<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																				</Storyboard>
        																																			</BeginStoryboard>
        																																		</Trigger.ExitActions>
        																																	</Trigger>
        																																	<Trigger Property="IsEnabled" Value="False">
        																																		<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																																	</Trigger>
        																																</ControlTemplate.Triggers>
        																															</ControlTemplate>
        																														</Setter.Value>
        																													</Setter>
        																													<Style.BasedOn>
        																														<Style TargetType="{x:Type Control}">
        																															<Setter Property="SnapsToDevicePixels" Value="False"/>
        																															<Setter Property="Background" Value="Transparent"/>
        																															<Setter Property="IsTabStop" Value="False"/>
        																															<Setter Property="Focusable" Value="False"/>
        																															<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																															<Setter Property="MinWidth" Value="40"/>
        																															<Setter Property="MinHeight" Value="40"/>
        																														</Style>
        																													</Style.BasedOn>
        																												</Style>
        																											</s:SurfaceThumb.Style>
        																										</s:SurfaceThumb>
        																									</Track.Thumb>
        																								</Track>
        																							</Border>
        																						</Grid>
        																						<ControlTemplate.Triggers>
        																							<Trigger Property="IsEnabled" Value="False">
        																								<Setter Property="Opacity" TargetName="IncreaseRepeat" Value="0.33"/>
        																								<Setter Property="Opacity" TargetName="DecreaseRepeat" Value="0.33"/>
        																								<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																							</Trigger>
        																						</ControlTemplate.Triggers>
        																					</ControlTemplate>
        																				</Setter.Value>
        																			</Setter>
        																		</Trigger>
        																	</Style.Triggers>
        																</Style>
        															</s:SurfaceScrollBar.Style>
        														</s:SurfaceScrollBar>
        														<s:SurfaceScrollBar x:Name="PART_VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar" Grid.Column="1" Foreground="{x:Null}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" ScrollViewer.HorizontalScrollBarVisibility="Disabled" IsEnabled="True" LargeChange="1" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Orientation="Vertical" Grid.Row="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" VerticalContentAlignment="Stretch" Width="Auto">
        															<s:SurfaceScrollBar.Style>
        																<Style TargetType="{x:Type s:SurfaceScrollBar}">
        																	<Style.Resources>
        																		<system:Double x:Key="{x:Static SystemParameters.VerticalScrollBarButtonHeightKey}">38</system:Double>
        																		<system:Double x:Key="{x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}">38</system:Double>
        																	</Style.Resources>
        																	<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
        																	<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
        																	<Setter Property="Width" Value="38"/>
        																	<Setter Property="Height" Value="Auto"/>
        																	<Setter Property="Template">
        																		<Setter.Value>
        																			<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																				<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																					<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																						<Track x:Name="PART_Track" IsDirectionReversed="True">
        																							<Track.DecreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageUpCommand" HorizontalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Width="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.DecreaseRepeatButton>
        																							<Track.IncreaseRepeatButton>
        																								<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageDownCommand" HorizontalAlignment="Center">
        																									<s:SurfaceRepeatButton.Style>
        																										<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																											<Setter Property="Interval" Value="150"/>
        																											<Setter Property="BorderBrush" Value="{x:Null}"/>
        																											<Setter Property="Background" Value="Transparent"/>
        																											<Setter Property="OverridesDefaultStyle" Value="True"/>
        																											<Setter Property="Focusable" Value="False"/>
        																											<Setter Property="IsTabStop" Value="False"/>
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																														<Grid Background="{TemplateBinding Background}" Width="40">
        																															<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Center" MinWidth="2"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																										</Style>
        																									</s:SurfaceRepeatButton.Style>
        																								</s:SurfaceRepeatButton>
        																							</Track.IncreaseRepeatButton>
        																							<Track.Thumb>
        																								<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" HorizontalAlignment="Center">
        																									<s:SurfaceThumb.Style>
        																										<Style TargetType="{x:Type s:SurfaceThumb}">
        																											<Setter Property="Template">
        																												<Setter.Value>
        																													<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																														<ControlTemplate.Resources>
        																															<Storyboard x:Key="Touch">
        																																<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																															<Storyboard x:Key="Release">
        																																<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																															</Storyboard>
        																														</ControlTemplate.Resources>
        																														<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																															<Rectangle x:Name="Thumb" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Width="14"/>
        																														</Grid>
        																														<ControlTemplate.Triggers>
        																															<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																																<Trigger.EnterActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.05" To="-1,0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.EnterActions>
        																																<Trigger.ExitActions>
        																																	<BeginStoryboard>
        																																		<Storyboard>
        																																			<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Width" Storyboard.TargetName="Thumb"/>
        																																			<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																		</Storyboard>
        																																	</BeginStoryboard>
        																																</Trigger.ExitActions>
        																															</Trigger>
        																															<Trigger Property="IsEnabled" Value="False">
        																																<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																															</Trigger>
        																														</ControlTemplate.Triggers>
        																													</ControlTemplate>
        																												</Setter.Value>
        																											</Setter>
        																											<Style.BasedOn>
        																												<Style TargetType="{x:Type Control}">
        																													<Setter Property="SnapsToDevicePixels" Value="False"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																													<Setter Property="MinWidth" Value="40"/>
        																													<Setter Property="MinHeight" Value="40"/>
        																												</Style>
        																											</Style.BasedOn>
        																										</Style>
        																									</s:SurfaceThumb.Style>
        																								</s:SurfaceThumb>
        																							</Track.Thumb>
        																						</Track>
        																					</Border>
        																				</Grid>
        																				<ControlTemplate.Triggers>
        																					<Trigger Property="IsEnabled" Value="False">
        																						<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																					</Trigger>
        																				</ControlTemplate.Triggers>
        																			</ControlTemplate>
        																		</Setter.Value>
        																	</Setter>
        																	<Style.BasedOn>
        																		<Style TargetType="{x:Type Control}">
        																			<Setter Property="SnapsToDevicePixels" Value="False"/>
        																			<Setter Property="Background" Value="Transparent"/>
        																			<Setter Property="IsTabStop" Value="False"/>
        																			<Setter Property="Focusable" Value="False"/>
        																			<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																			<Setter Property="MinWidth" Value="40"/>
        																			<Setter Property="MinHeight" Value="40"/>
        																		</Style>
        																	</Style.BasedOn>
        																	<Style.Triggers>
        																		<Trigger Property="Orientation" Value="Horizontal">
        																			<Setter Property="Width" Value="Auto"/>
        																			<Setter Property="Height" Value="38"/>
        																			<Setter Property="Template">
        																				<Setter.Value>
        																					<ControlTemplate TargetType="{x:Type s:SurfaceScrollBar}">
        																						<Grid x:Name="GridRoot" Background="{TemplateBinding Background}">
        																							<Border x:Name="Track" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        																								<Track x:Name="PART_Track">
        																									<Track.DecreaseRepeatButton>
        																										<s:SurfaceRepeatButton x:Name="DecreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageLeftCommand" VerticalAlignment="Center">
        																											<s:SurfaceRepeatButton.Style>
        																												<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																													<Setter Property="Interval" Value="150"/>
        																													<Setter Property="BorderBrush" Value="{x:Null}"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="OverridesDefaultStyle" Value="True"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Template">
        																														<Setter.Value>
        																															<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																																<Grid Background="{TemplateBinding Background}" Height="40">
        																																	<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																																</Grid>
        																																<ControlTemplate.Triggers>
        																																	<Trigger Property="IsEnabled" Value="False">
        																																		<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																																	</Trigger>
        																																</ControlTemplate.Triggers>
        																															</ControlTemplate>
        																														</Setter.Value>
        																													</Setter>
        																												</Style>
        																											</s:SurfaceRepeatButton.Style>
        																										</s:SurfaceRepeatButton>
        																									</Track.DecreaseRepeatButton>
        																									<Track.IncreaseRepeatButton>
        																										<s:SurfaceRepeatButton x:Name="IncreaseRepeat" Background="{TemplateBinding Background}" Command="ScrollBar.PageRightCommand" VerticalAlignment="Center">
        																											<s:SurfaceRepeatButton.Style>
        																												<Style TargetType="{x:Type s:SurfaceRepeatButton}">
        																													<Setter Property="Interval" Value="150"/>
        																													<Setter Property="BorderBrush" Value="{x:Null}"/>
        																													<Setter Property="Background" Value="Transparent"/>
        																													<Setter Property="OverridesDefaultStyle" Value="True"/>
        																													<Setter Property="Focusable" Value="False"/>
        																													<Setter Property="IsTabStop" Value="False"/>
        																													<Setter Property="Template">
        																														<Setter.Value>
        																															<ControlTemplate TargetType="{x:Type s:SurfaceRepeatButton}">
        																																<Grid Background="{TemplateBinding Background}" Height="40">
        																																	<Rectangle x:Name="Line" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" MinHeight="2" VerticalAlignment="Center"/>
        																																</Grid>
        																																<ControlTemplate.Triggers>
        																																	<Trigger Property="IsEnabled" Value="False">
        																																		<Setter Property="Fill" TargetName="Line" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																																	</Trigger>
        																																</ControlTemplate.Triggers>
        																															</ControlTemplate>
        																														</Setter.Value>
        																													</Setter>
        																												</Style>
        																											</s:SurfaceRepeatButton.Style>
        																										</s:SurfaceRepeatButton>
        																									</Track.IncreaseRepeatButton>
        																									<Track.Thumb>
        																										<s:SurfaceThumb x:Name="Thumb" Background="{TemplateBinding Background}" VerticalAlignment="Center">
        																											<s:SurfaceThumb.Style>
        																												<Style TargetType="{x:Type s:SurfaceThumb}">
        																													<Setter Property="Template">
        																														<Setter.Value>
        																															<ControlTemplate TargetType="{x:Type s:SurfaceThumb}">
        																																<ControlTemplate.Resources>
        																																	<Storyboard x:Key="Touch">
        																																		<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																		<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																	</Storyboard>
        																																	<Storyboard x:Key="Release">
        																																		<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																		<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																	</Storyboard>
        																																</ControlTemplate.Resources>
        																																<Grid x:Name="Grid" Background="{TemplateBinding Background}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
        																																	<Rectangle x:Name="Thumb" Fill="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}" HorizontalAlignment="Stretch" Height="14" VerticalAlignment="Stretch" Width="Auto"/>
        																																</Grid>
        																																<ControlTemplate.Triggers>
        																																	<Trigger Property="s:TouchExtensions.AreAnyInputDevicesCapturedWithin" Value="True">
        																																		<Trigger.EnterActions>
        																																			<BeginStoryboard>
        																																				<Storyboard>
        																																					<DoubleAnimation Duration="0:0:0.05" To="16" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																					<ThicknessAnimation Duration="0:0:0.05" To="0,-1" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																				</Storyboard>
        																																			</BeginStoryboard>
        																																		</Trigger.EnterActions>
        																																		<Trigger.ExitActions>
        																																			<BeginStoryboard>
        																																				<Storyboard>
        																																					<DoubleAnimation Duration="0:0:0.1" To="14" Storyboard.TargetProperty="Height" Storyboard.TargetName="Thumb"/>
        																																					<ThicknessAnimation Duration="0:0:0.1" To="0" Storyboard.TargetProperty="Margin" Storyboard.TargetName="Thumb"/>
        																																				</Storyboard>
        																																			</BeginStoryboard>
        																																		</Trigger.ExitActions>
        																																	</Trigger>
        																																	<Trigger Property="IsEnabled" Value="False">
        																																		<Setter Property="Fill" TargetName="Thumb" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type s:SurfaceColors}}}"/>
        																																	</Trigger>
        																																</ControlTemplate.Triggers>
        																															</ControlTemplate>
        																														</Setter.Value>
        																													</Setter>
        																													<Style.BasedOn>
        																														<Style TargetType="{x:Type Control}">
        																															<Setter Property="SnapsToDevicePixels" Value="False"/>
        																															<Setter Property="Background" Value="Transparent"/>
        																															<Setter Property="IsTabStop" Value="False"/>
        																															<Setter Property="Focusable" Value="False"/>
        																															<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        																															<Setter Property="MinWidth" Value="40"/>
        																															<Setter Property="MinHeight" Value="40"/>
        																														</Style>
        																													</Style.BasedOn>
        																												</Style>
        																											</s:SurfaceThumb.Style>
        																										</s:SurfaceThumb>
        																									</Track.Thumb>
        																								</Track>
        																							</Border>
        																						</Grid>
        																						<ControlTemplate.Triggers>
        																							<Trigger Property="IsEnabled" Value="False">
        																								<Setter Property="Opacity" TargetName="IncreaseRepeat" Value="0.33"/>
        																								<Setter Property="Opacity" TargetName="DecreaseRepeat" Value="0.33"/>
        																								<Setter Property="IsEnabled" TargetName="PART_Track" Value="False"/>
        																							</Trigger>
        																						</ControlTemplate.Triggers>
        																					</ControlTemplate>
        																				</Setter.Value>
        																			</Setter>
        																		</Trigger>
        																	</Style.Triggers>
        																</Style>
        															</s:SurfaceScrollBar.Style>
        														</s:SurfaceScrollBar>
        													</Grid>
        													<ControlTemplate.Triggers>
        														<Trigger Property="IsEnabled" Value="False">
        															<Setter Property="IsEnabled" TargetName="PART_HorizontalScrollBar" Value="False"/>
        															<Setter Property="IsEnabled" TargetName="PART_VerticalScrollBar" Value="False"/>
        														</Trigger>
        													</ControlTemplate.Triggers>
        												</ControlTemplate>
        											</Setter.Value>
        										</Setter>
        									</Style>
        								</Style.BasedOn>
        							</Style>
        						</s:SurfaceScrollViewer.Style>
        						<ItemsPresenter ClipToBounds="False" MinWidth="{TemplateBinding MinWidth}" MinHeight="{TemplateBinding MinHeight}"/>
        					</s:SurfaceScrollViewer>
        					<Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
        				</Grid>
        				<ControlTemplate.Triggers>
        					<Trigger Property="IsGrouping" Value="True">
        						<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
        					</Trigger>
        				</ControlTemplate.Triggers>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        	<Style.BasedOn>
        		<Style TargetType="{x:Type Control}">
        			<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        			<Setter Property="SnapsToDevicePixels" Value="False"/>
        			<Setter Property="FontFamily" Value="Segoe360"/>
        			<Setter Property="FontWeight" Value="Normal"/>
        			<Setter Property="FontSize" Value="17"/>
        			<Setter Property="Padding" Value="6,2,10,10"/>
        			<Setter Property="MinHeight" Value="38"/>
        			<Setter Property="MinWidth" Value="38"/>
        			<Setter Property="Margin" Value="1"/>
        			<Setter Property="HorizontalContentAlignment" Value="Left"/>
        			<Setter Property="VerticalContentAlignment" Value="Top"/>
        			<Setter Property="BorderThickness" Value="2"/>
        		</Style>
        	</Style.BasedOn>
        </Style>
    </Window.Resources>
    
    <Grid>
        <s:SurfaceListBox x:Name="DataBackendList" ItemsSource="{Binding Connections, Mode=OneTime}" SelectionChanged="OnSelectionChanged"
                          VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                          ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Disabled"
                          HorizontalContentAlignment="Center" Style="{DynamicResource ResourceKey=DataBackendListBox}"
                          Foreground="DimGray">
            <s:SurfaceListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal"
                                s:SurfaceScrollViewer.Elasticity="0.4, 0.0" />
                </ItemsPanelTemplate>
            </s:SurfaceListBox.ItemsPanel>
            <s:SurfaceListBox.ItemTemplate>
                <DataTemplate>
                    <Border BorderBrush="Gray" BorderThickness="1" Margin="5">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="125" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <Image Source="{Binding Path=Icon, Converter={StaticResource ResourceKey=BitmapToImageSourceConverter}, Mode=OneWay}"
                                       Grid.Row="0" />
                            <TextBlock Text="{Binding Path=FriendlyName, Mode=OneWay}" HorizontalAlignment="Center"
                                           Grid.Row="1" />
                        </Grid>
                    </Border>
                </DataTemplate>
            </s:SurfaceListBox.ItemTemplate>
        </s:SurfaceListBox>
    </Grid>
</Window>
